﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:AzukiMapUI="clr-namespace:AzukiMapUI;assembly=AzukiMapUI">

    <Style TargetType="AzukiMapUI:AzukiMapLogo">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="AzukiMapUI:AzukiMapLogo">
                    <Canvas Width="86.92" Height="14" Grid.Row="1" Grid.Column="2" HorizontalAlignment="Right" Margin="0,8,3.5,0" VerticalAlignment="Top">
                        <Canvas Canvas.Left="0.50" Canvas.Top="0.50">
                            <Canvas>
                                <Canvas>
                                    <Canvas>
                                        <Canvas>
                                            <Path Fill="#FFB91D2C" Data="F1M23.48,4.17C22.84,2.67,20.60,2.19,18.48,3.10C16.37,4.02,15.19,5.97,15.84,7.48C16.49,8.98,18.73,9.45,20.84,8.54C22.95,7.62,24.13,5.67,23.48,4.17 M22.46,5.28L19.92,6.38C19.60,6.51,19.25,6.37,19.11,6.06C18.98,5.75,19.12,5.39,19.43,5.25L21.97,4.16C22.28,4.02,22.64,4.16,22.77,4.47C22.91,4.78,22.77,5.14,22.46,5.28z"/>
                                        </Canvas>
                                    </Canvas>
                                    <Canvas>
                                        <Canvas>
                                            <Path Fill="#FFB91D2C" Data="F1M15.17,4.16C14.52,2.66,12.28,2.19,10.17,3.10C8.06,4.02,6.88,5.97,7.53,7.47C8.17,8.98,10.41,9.45,12.52,8.54C14.64,7.62,15.82,5.67,15.17,4.16 M11.58,6.39L9.04,7.48C8.73,7.62,8.37,7.48,8.23,7.17C8.10,6.86,8.24,6.50,8.55,6.36L11.09,5.26C11.40,5.13,11.76,5.27,11.90,5.58C12.03,5.89,11.89,6.25,11.58,6.39z"/>
                                        </Canvas>
                                    </Canvas>
                                    <Canvas>
                                        <Canvas>
                                            <Path Fill="#FFB91D2C" Data="F1M5.90,3.82C4.98,1.71,3.03,0.53,1.53,1.18C0.03,1.83,-0.45,4.07,0.47,6.18C1.38,8.29,3.33,9.47,4.84,8.82C6.34,8.17,6.81,5.94,5.90,3.82 M4.53,8.11C4.22,8.25,3.86,8.10,3.72,7.80L2.62,5.26C2.49,4.95,2.63,4.59,2.94,4.45C3.26,4.32,3.61,4.46,3.75,4.77L4.85,7.31C4.98,7.62,4.84,7.98,4.53,8.11z"/>
                                        </Canvas>
                                    </Canvas>
                                    <Canvas>
                                        <Canvas>
                                            <Path Fill="#FFB91D2C" Data="F1M30.56,3.82C29.64,1.71,27.69,0.53,26.19,1.18C24.69,1.83,24.21,4.06,25.12,6.18C26.04,8.29,28.00,9.47,29.50,8.82C31.00,8.17,31.47,5.93,30.56,3.82 M28.08,5.55C27.77,5.68,27.41,5.54,27.27,5.23L26.18,2.69C26.04,2.38,26.18,2.02,26.49,1.89C26.80,1.75,27.16,1.90,27.30,2.21L28.40,4.75C28.53,5.06,28.39,5.41,28.08,5.55z"/>
                                        </Canvas>
                                    </Canvas>
                                </Canvas>
                                <Canvas>
                                    <Path Fill="#FFB91D2C" Data="F1M39.04,4.09C39.04,2.44,38.16,2.11,36.56,2.08L36.56,2.07L34.22,2.07C34.11,2.07,34.02,2.16,34.02,2.27L34.02,2.94C34.02,3.05,34.11,3.14,34.22,3.14L36.56,3.34C37.26,3.36,37.57,3.43,37.68,3.69L37.68,4.30C37.60,4.45,37.46,4.46,37.29,4.46L35.26,4.57C35.00,4.58,34.49,4.69,34.22,4.87C33.73,5.20,33.54,5.66,33.49,6.23L33.49,6.24C33.49,7.73,34.24,8.42,35.86,8.42C36.18,8.42,36.93,8.41,37.51,7.97L37.51,7.95C37.52,7.95,37.53,7.94,37.53,7.94C37.63,7.90,37.72,7.95,37.73,8.06C37.73,8.06,37.73,8.15,37.74,8.24C37.74,8.34,37.84,8.42,37.95,8.42L38.84,8.42C38.95,8.42,39.04,8.33,39.04,8.22L39.04,4.09 M37.67,6.03C37.67,6.03,37.70,6.33,37.50,6.65C37.50,6.65,37.43,6.76,37.37,6.81C37.04,7.13,36.58,7.18,36.21,7.18C34.97,7.18,34.85,6.64,34.83,6.19C34.83,5.84,35.12,5.71,35.66,5.68L37.00,5.62C37.00,5.62,37.63,5.58,37.67,6.03"/>
                                    <Path Fill="#FFB91D2C" Data="F1M78.81,4.09C78.81,2.44,77.93,2.11,76.33,2.08L76.33,2.07L73.99,2.07C73.88,2.07,73.79,2.16,73.79,2.27L73.79,2.94C73.79,3.05,73.88,3.14,73.99,3.14L76.33,3.34C77.03,3.36,77.34,3.43,77.45,3.69L77.45,4.30C77.38,4.45,77.23,4.46,77.05,4.46L75.03,4.57C74.76,4.58,74.25,4.69,73.99,4.87C73.50,5.20,73.31,5.66,73.25,6.23L73.26,6.24C73.26,7.73,74.01,8.42,75.63,8.42C75.95,8.42,76.70,8.41,77.27,7.97L77.27,7.95C77.29,7.95,77.30,7.94,77.30,7.94C77.40,7.90,77.49,7.95,77.49,8.06C77.49,8.06,77.50,8.15,77.51,8.24C77.51,8.34,77.60,8.42,77.71,8.42L78.61,8.42C78.72,8.42,78.81,8.33,78.81,8.22L78.81,4.09 M77.44,6.03C77.44,6.03,77.47,6.33,77.28,6.65C77.28,6.65,77.19,6.76,77.14,6.81C76.81,7.13,76.35,7.18,75.98,7.18C74.73,7.18,74.61,6.64,74.60,6.19C74.59,5.84,74.89,5.71,75.43,5.68L76.77,5.62C76.77,5.62,77.40,5.58,77.44,6.03"/>
                                    <Path Fill="#FFB91D2C" Data="F1M40.32,2.07C40.21,2.07,40.13,2.16,40.13,2.27L40.13,2.94C40.13,3.05,40.21,3.14,40.32,3.14L43.18,3.34C43.29,3.34,43.32,3.41,43.25,3.49L40.14,7.07C40.07,7.15,40.01,7.30,40.01,7.42L40.01,8.22C40.01,8.33,40.10,8.42,40.21,8.42L45.04,8.42C45.14,8.42,45.23,8.33,45.23,8.22L45.23,7.55C45.23,7.44,45.14,7.36,45.04,7.36L42.05,7.16C41.94,7.16,41.91,7.09,41.98,7.01L45.08,3.43C45.16,3.35,45.22,3.19,45.22,3.08L45.22,2.27C45.22,2.16,45.12,2.07,45.01,2.07L40.32,2.07z"/>
                                    <Path Fill="#FFB91D2C" Data="F1M51.83,2.07L50.88,2.07C50.78,2.07,50.68,2.16,50.68,2.27L50.68,5.64C50.68,5.64,50.68,5.65,50.68,5.66C50.68,5.77,50.68,5.93,50.66,6.03C50.66,6.03,50.62,6.42,50.50,6.69L50.50,6.62C50.46,6.69,50.42,6.76,50.37,6.81C50.03,7.13,49.57,7.18,49.21,7.18C47.83,7.18,47.83,6.52,47.83,6.04L47.83,2.27C47.83,2.16,47.74,2.07,47.63,2.07L46.68,2.07C46.57,2.07,46.48,2.16,46.48,2.27L46.48,6.24C46.48,7.73,47.24,8.42,48.86,8.42C49.18,8.42,49.92,8.41,50.50,7.97L50.50,7.95C50.52,7.95,50.53,7.94,50.53,7.94C50.63,7.90,50.72,7.95,50.72,8.06C50.72,8.06,50.73,8.15,50.73,8.24C50.74,8.34,50.83,8.42,50.94,8.42L51.83,8.42C51.94,8.42,52.03,8.33,52.03,8.22L52.03,2.27C52.03,2.16,51.94,2.07,51.83,2.07"/>
                                    <Path Fill="#FFB91D2C" Data="F1M53.53,0.20C53.42,0.20,53.33,0.29,53.33,0.40L53.33,8.22C53.33,8.33,53.42,8.42,53.53,8.42L54.48,8.42C54.58,8.42,54.67,8.33,54.67,8.22L54.67,5.56C54.67,5.45,54.74,5.43,54.81,5.51L57.50,8.27C57.58,8.35,57.73,8.42,57.84,8.42L59.27,8.42C59.38,8.42,59.41,8.35,59.33,8.28L56.17,5.17C56.09,5.10,56.09,4.97,56.17,4.90L59.03,2.21C59.11,2.14,59.09,2.07,58.98,2.07L57.55,2.07C57.44,2.07,57.29,2.14,57.21,2.21L54.82,4.57C54.74,4.65,54.67,4.62,54.67,4.51L54.67,0.40C54.67,0.29,54.58,0.20,54.48,0.20L53.53,0.20z"/>
                                    <Path Fill="#FFB91D2C" Data="F1M60.65,0.27C60.54,0.27,60.45,0.36,60.45,0.47L60.45,1.50C60.45,1.61,60.54,1.69,60.65,1.69L61.74,1.69C61.85,1.69,61.93,1.60,61.93,1.50L61.93,0.46C61.93,0.36,61.85,0.26,61.74,0.26L60.65,0.26 M60.72,2.07C60.60,2.07,60.51,2.16,60.51,2.27L60.51,8.22C60.51,8.33,60.60,8.42,60.72,8.42L61.67,8.42C61.78,8.42,61.87,8.33,61.87,8.22L61.87,2.27C61.87,2.16,61.78,2.07,61.67,2.07L60.72,2.07z"/>
                                    <Path Fill="#FFB91D2C" Data="F1M70.20,0.00C70.10,0.00,69.98,0.08,69.94,0.19L67.83,6.50C67.80,6.60,67.75,6.60,67.71,6.50L65.61,0.19C65.58,0.09,65.46,0.00,65.35,0.00L63.70,0.00C63.59,0.00,63.50,0.09,63.50,0.20L63.50,8.22C63.50,8.33,63.59,8.42,63.70,8.42L64.69,8.42C64.80,8.42,64.89,8.33,64.89,8.22L64.89,3.55C64.89,3.44,64.89,3.26,64.89,3.15L64.87,2.21C64.87,2.10,64.90,2.10,64.93,2.20L66.97,8.23C67.00,8.33,67.12,8.42,67.23,8.42L68.32,8.42C68.43,8.42,68.55,8.33,68.58,8.23L70.62,2.18C70.65,2.08,70.68,2.08,70.68,2.19L70.66,3.14C70.66,3.25,70.65,3.43,70.65,3.54L70.65,8.22C70.65,8.33,70.75,8.42,70.85,8.42L71.86,8.42C71.96,8.42,72.06,8.33,72.06,8.22L72.06,0.20C72.06,0.09,71.96,0.00,71.86,0.00L70.20,0.00z"/>
                                    <Path Fill="#FFB91D2C" Data="F1M81.66,2.64C81.57,2.71,81.50,2.68,81.50,2.57C81.50,2.57,81.50,2.50,81.50,2.41C81.50,2.33,81.41,2.26,81.30,2.26L80.38,2.26C80.27,2.26,80.18,2.35,80.18,2.46L80.18,9.80C80.18,9.91,80.27,10.00,80.38,10.00L81.32,10.00C81.43,10.00,81.52,9.91,81.52,9.80L81.52,8.10C81.52,7.99,81.59,7.95,81.68,8.02C81.68,8.02,82.27,8.46,83.37,8.46C84.63,8.46,85.92,8.10,85.92,5.44C85.92,3.42,85.49,2.18,83.37,2.18C82.23,2.18,81.66,2.64,81.66,2.64 M81.52,5.42C81.52,4.23,81.63,3.40,83.01,3.40C84.25,3.40,84.57,3.79,84.57,5.33C84.57,6.55,84.50,7.25,83.02,7.25C81.90,7.25,81.52,6.78,81.52,5.42"/>
                                </Canvas>
                            </Canvas>
                        </Canvas>
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style TargetType="AzukiMapUI:DragDropControl">  
        <Setter Property="VerticalAlignment" Value="Top"></Setter>
        <Setter Property="HorizontalAlignment" Value="Left"></Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="AzukiMapUI:DragDropControl">
                    <Canvas x:Name="Root">
                        <Grid x:Name="Container" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">                           
                            <ContentPresenter x:Name="Content" Content="{TemplateBinding Content}" />                           
                        </Grid>    
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
 
    <Style TargetType="AzukiMapUI:PopupWindow">
        <!--
        <Setter Property="VerticalAlignment" Value="Center"></Setter>
        <Setter Property="HorizontalAlignment" Value="Center"></Setter>
        -->
        <Setter Property="Template">
            <Setter.Value>               
                <ControlTemplate TargetType="AzukiMapUI:PopupWindow">
        <Canvas x:Name="Root">
            <Rectangle x:Name="ModalMask" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Fill="White" Opacity="0.01" />
            <Grid x:Name="Container" VerticalAlignment="Top" HorizontalAlignment="Left" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">                            
            <!--
            <Grid x:Name="Container" VerticalAlignment="Top" HorizontalAlignment="Left" Width="Auto" Height="auto">
              -->
                <Border x:Name="WindowBorder" BorderThickness="1,1,1,1" BorderBrush="#999" CornerRadius="5,5,5,5" Background="White">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="24"/>
                            <RowDefinition />
                            <RowDefinition Height="0" x:Name="ButtonRow"/>
                            <RowDefinition Height="24" x:Name="StatusRow"/>
                        </Grid.RowDefinitions>
                        <Grid.Resources>
                            <!--
                                        <LinearGradientBrush x:Key="TitleBackground" Opacity="0.6" EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFFAFAFA" Offset="0" />
                                            <GradientStop Color="#FFCBD2DB" Offset="1" />
                                        </LinearGradientBrush>
									-->
                            <LinearGradientBrush x:Key="TitleBackground" EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFE0E0E0"/>
                                <GradientStop Color="#FFA3A3A3" Offset="1"/>
                            </LinearGradientBrush>
                            <LinearGradientBrush x:Key="StatusBarBackground" StartPoint="0.5,0" EndPoint="0.5,1">
                                <GradientStop Color="#FFCBD2DB" Offset="0" />
                                <GradientStop Color="#FFFAFAFA" Offset="1" />
                            </LinearGradientBrush>
                        </Grid.Resources>
                        <Border x:Name="TitleBar" Grid.Row="0" VerticalAlignment="Stretch" Background="{StaticResource TitleBackground}">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition/>
                                    <ColumnDefinition/>
                                </Grid.ColumnDefinitions>
                                <!--                                     
                                <TextBlock x:Name="TitleText" Text="{TemplateBinding Title}" Margin="5 0 6 0" Foreground="#FF14316B"/>
								-->
						        <Image Source="http://azukimap.jp/hako/famfamfam/icons/application.png" Stretch="Fill" Width="16" Height="16" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="4,0,0,0"/>
                                <TextBlock x:Name="TitleText" Text="{TemplateBinding Title}" Margin="24,0,6,0" Foreground="#FF000000" FontFamily="Arial" FontSize="12" VerticalAlignment="Center" FontWeight="Bold" HorizontalAlignment="Left"/>
                                <StackPanel Grid.Column="1" x:Name="Buttons" Orientation="Horizontal" HorizontalAlignment="Right">
							    <Image x:Name="CloseButton" Height="16" HorizontalAlignment="Right" Margin="0,0,4,0" VerticalAlignment="Center" Width="16" Source="http://azukimap.jp/hako/famfamfam/icons/cross.png" Stretch="Fill"/>
                                <!--
                                <Button x:Name="CloseButton" Grid.Column="1" Style="{StaticResource CloseButton}"/>
                                -->
                                </StackPanel>
                            </Grid>
                        </Border>
                        <Border x:Name="ContentContainer" Grid.Row="1" Margin="1 0 1 1" Background="White">
                                         <ContentPresenter x:Name="Content" Margin="1 0 1 1" Content="{TemplateBinding Content}" />                                         
                        </Border>
                        <!--
                        <Border x:Name="ButtonBar" Grid.Row="2" VerticalAlignment="Stretch" Background="WhiteSmoke" BorderThickness="0,0.5,0,0" BorderBrush="#ccc" CornerRadius="0,0,0,0">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Button Margin="0,0,8,0" Content="OK" Width="72" Height="24" BorderThickness="1,1,1,1" VerticalAlignment="Center" HorizontalAlignment="Right"/>
                                <Button HorizontalAlignment="Right" Margin="0,0,92,0" Width="72" Content="Cancel" Height="24" VerticalAlignment="Center"/>
                            </Grid>
                        </Border>
                        -->
                        <Border x:Name="StatusBar" Grid.Row="3" VerticalAlignment="Stretch" Background="WhiteSmoke" BorderThickness="0,0.5,0,0" BorderBrush="#ccc" CornerRadius="0,0,0,0">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <!--
                                            <TextBlock Margin="2 2 2 2" FontSize="10" FontFamily="Verdana" Foreground="Black" Text="{TemplateBinding Status}"></TextBlock>
											-->
                                <TextBlock Margin="2,2,0,2" FontSize="10" FontFamily="Arial" Foreground="Black" Text="{TemplateBinding Status}" HorizontalAlignment="Left" Width="245"></TextBlock>
                            </Grid>
                        </Border>
                    </Grid>
                </Border>
            </Grid>
        </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


</ResourceDictionary>
